package com.eigaland.change_machine.util

import android.net.Uri
import androidx.appcompat.widget.AppCompatImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import com.eigaland.change_machine.R

object DataBindingAdapterUtil {


    @BindingAdapter("loadImageUrl")
    @JvmStatic
     fun loadImageUrl(imageView: AppCompatImageView,url:String){


         Glide.with(imageView.context)
             .asBitmap().load(url).error(R.drawable.vector_drawable_logo_movie).fallback(R.drawable.vector_drawable_logo_movie).into(imageView)
     }


    @BindingAdapter("bindShowStatus")
    fun bindShowStatus(View: AppCompatImageView,status:String){


    }

}